package org.cupk2.main.cecurity.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class LoginUserDto {
    @NotNull(message = "{cupk2.validate.template.notnull}")
    @Size(min = 2, max = 32, message = "{cupk2.validate.template.size}")
    @Schema(description = "登录名", example = "zhangsan")
    private String loginname;
    @NotNull(message = "{cupk2.validate.template.notnull}")
    @Size(min = 2, max = 32, message = "{cupk2.validate.template.size}")
    @Schema(description = "登录密码", example = "123456")
    private String password;

    /**
     * 保存验证码和盐兑换CODE
     */
    private String code;


    /**
     * 图形验证码
     */
    private String imgcode;
}
